//
//  IndexCell.m
//  HWSGW
//
//  Created by avachen on 15/11/9.
//  Copyright © 2015年 luxuanrui. All rights reserved.
//

#import "IndexCell.h"
#import "UIImageView+WebCache.h"

@implementation IndexCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _img = [[UIImageView alloc] initWithFrame:self.contentView.bounds];
        _img.backgroundColor = [UIColor grayColor];
        _img.transform = CGAffineTransformMakeScale(0.9, 0.9);
        
        [self.contentView addSubview:_img];
        
    }
    return self;
}

- (void)setUrl:(NSString *)url
{
    if (_url != url) {
        _url = url;
        
        [_img sd_setImageWithURL:[NSURL URLWithString:url]];
        
        
    }
}
@end
